home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 3006 / 3006.xpi / chrome / dwhelper.jar / content / convert-manual.xul < prev    next >
Extensible Markup Language  |  2010-01-15  |  2KB  |  65 lines

  1. <?xml version="1.0"?> 
  2. <!-- *****************************************************************************
  3.  *            Copyright (c) 2006-2009 Michel Gutierrez. All Rights Reserved.
  4.  ****************************************************************************** -->
  5. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
  6. <?xml-stylesheet href="chrome://dwhelper/skin/dwhelper.css" type="text/css"?>
  7. <?xml-stylesheet href="chrome://dwhelper/content/bindings.css" type="text/css"?>
  8.  
  9. <!DOCTYPE window SYSTEM "chrome://dwhelper/locale/dwhelper.dtd" >
  10.  
  11. <dialog id="dwhelper-convert-options-window"
  12.         title="&title.convert-options;"
  13.         flex="1"
  14.         onload="onLoad()"
  15.         ondialogaccept="return doOk();"
  16.         buttons="help,accept,cancel"
  17.         ondialoghelp="return doHelp();"
  18.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  19.         xmlns:html="http://www.w3.org/1999/xhtml"
  20.         >
  21.  
  22.     <script type="application/x-javascript"
  23.         src="chrome://dwhelper/content/dwhutil.js" />
  24.  
  25.     <script><![CDATA[
  26. var pref=Components.classes["@mozilla.org/preferences-service;1"]
  27.     .getService(Components.interfaces.nsIPrefService)
  28.     .getBranch("dwhelper.");
  29.  
  30. function onLoad() {
  31.     var of=document.getElementById("xOutFormat");
  32.     var format=window.arguments[0].format;
  33.     if(format==null) {
  34.         format="wmv/-acodec wmav1 -b 1000kbps -f asf -vcodec wmv1";
  35.         try {
  36.             format=pref.getCharPref("manual-convert-output-format");
  37.         } catch(e) {}
  38.     }
  39.     window.arguments[0].format=null;
  40.     of.value=format;
  41. }
  42.  
  43. function doOk() {
  44.     var of=document.getElementById("xOutFormat");
  45.     
  46.     if(!of.isValid())
  47.         return false;
  48.     
  49.     var format=of.value;
  50.     pref.setCharPref("manual-convert-output-format",format);
  51.     window.arguments[0].format=format;
  52.     return true;
  53. }
  54.  
  55. function doHelp() {
  56.     window.opener.open("http://www.downloadhelper.net/conversion-manual.php#use-manual");
  57.     return false;
  58. }
  59.     
  60.     ]]></script>
  61.  
  62.      <VideoFormatPanel id="xOutFormat"/>
  63.  
  64. </dialog>
  65.